package lab02.test27;
import java.util.InputMismatchException;
import java.util.Scanner;
public class Test27 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个数");

        try {
            int num=sc.nextInt();
            System.out.println(num);

        }
        catch (Exception a){
            System.out.println("error=="+a);

        }
    }
}
